package com.entity;

import java.io.Serializable;

/**
 * @author 
 */
public class RecevieadKey implements Serializable {
    private Integer aid;

    private String buid;

    private Integer radid;

    private static final long serialVersionUID = 1L;

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getBuid() {
        return buid;
    }

    public void setBuid(String buid) {
        this.buid = buid;
    }

    public Integer getRadid() {
        return radid;
    }

    public void setRadid(Integer radid) {
        this.radid = radid;
    }

    @Override
    public boolean equals(Object that) {
        if (this == that) {
            return true;
        }
        if (that == null) {
            return false;
        }
        if (getClass() != that.getClass()) {
            return false;
        }
        RecevieadKey other = (RecevieadKey) that;
        return (this.getAid() == null ? other.getAid() == null : this.getAid().equals(other.getAid()))
            && (this.getBuid() == null ? other.getBuid() == null : this.getBuid().equals(other.getBuid()))
            && (this.getRadid() == null ? other.getRadid() == null : this.getRadid().equals(other.getRadid()));
    }

    @Override
    public int hashCode() {
        final int prime = 31;
        int result = 1;
        result = prime * result + ((getAid() == null) ? 0 : getAid().hashCode());
        result = prime * result + ((getBuid() == null) ? 0 : getBuid().hashCode());
        result = prime * result + ((getRadid() == null) ? 0 : getRadid().hashCode());
        return result;
    }

    @Override
    public String toString() {
        StringBuilder sb = new StringBuilder();
        sb.append(getClass().getSimpleName());
        sb.append(" [");
        sb.append("Hash = ").append(hashCode());
        sb.append(", aid=").append(aid);
        sb.append(", buid=").append(buid);
        sb.append(", radid=").append(radid);
        sb.append(", serialVersionUID=").append(serialVersionUID);
        sb.append("]");
        return sb.toString();
    }
}